const tokenKey = 'Viewer-Design-Admin-Token'

type IGetToken = () => string | null
export const getToken: IGetToken = () => {
  return localStorage.getItem(tokenKey)
}

export const setToken = (token: string): void => {
  return localStorage.setItem(tokenKey, token)
}

export const removeToken = () => {
  return localStorage.removeItem(tokenKey)
}
